.search {
  background: #fff;
  min-height: 100vh;
  padding: 0 0 24px 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.searchBar {
  display: flex;
  align-items: center;
  padding-left: 0;
  margin: 24px 16px 0 16px;
}

.backIcon {
  margin-right: 8px;
  position: static;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input {
  flex: 1;
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding-left: 44px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border 0.2s;
}

.input:focus {
  border: 1.5px solid #409eff;
  background: #fff;
}

.input::placeholder {
  color: #bfbfbf;
  font-size: 15px;
}

.historySection {
  margin: 32px 16px 0 16px;
}

.historyHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 8px;
}

.clearAll {
  color: #409eff;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.historyList {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: none;
}

.historyItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
}

.historyItem:last-child {
  border-bottom: none;
}

.deleteBtn {
  color: #bbb;
  font-size: 18px;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.2s;
  user-select: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.deleteBtn:hover {
  color: #ff4d4f;
  background: #f5f5f5;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
}

.productCard {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 12px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.productImgBox {
  width: 100%;
  aspect-ratio: 1/1;
  background: #e0e0e0;
  border-radius: 14px;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productImg {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}

.productFav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.productTitle {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 6px;
  color: #222;
}

.productInfoRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.productStar {
  font-size: 14px;
  color: #222;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 2px 6px;
}

.productSold {
  font-size: 13px;
  color: #888;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 2px 6px;
}

.productPrice {
  font-size: 16px;
  color: #222;
  font-weight: bold;
}

.tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.tagItem {
  display: inline-flex;
  align-items: center;
  background: #f5f6fa;
  color: #333;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  outline: none;
}

.tagItem:hover {
  background: #e6e6e6;
}

.tagHot {
  color: #ff4d4f;
  font-size: 13px;
  background: #fff0f0;
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: 4px;
}
